// 后端服务端口
export const BaseUrl = "http://localhost:8088";
// export const BaseUrl = "http://127.0.0.1:8088";
// url
export default {
    // 登录
    auth: {
        login: BaseUrl + '/auth/login',
        logout: BaseUrl + '/auth/logout',
    },

    // 商品种类
    type: {
        selectTypeList: BaseUrl + '/type/selectTypeList',
        update: BaseUrl + '/type/update',
        add: BaseUrl + '/type/add',
        remove: BaseUrl + '/type/remove'
    },

    // 商品管理
    goods: {
        addGoods: BaseUrl + '/goods/addGoods',
        selectList: BaseUrl + "/goods/selectList",
        goodsQuery: BaseUrl + '/goods/goodsQuery',
        remove: BaseUrl + '/goods/remove',
        update: BaseUrl + '/goods/update',
    },

    // 商品价格
    goodsPrice: {
        selectGoodsPrice: BaseUrl + '/goodsPrice/selectGoodsPrice',
        selectUnitPrice: BaseUrl + '/goodsPrice/selectUnitPrice',
    },

    // 库存
    stock: {
        selectUnitStock: BaseUrl + "/stock/selectUnitStock",
        updateStock: BaseUrl + "/stock/updateStock",
    },

    // 单位
    unit: {
        selectUnitList: BaseUrl + '/unit/selectUnitList',
        add: BaseUrl + '/unit/add',
        remove: BaseUrl + '/unit/remove',
        update: BaseUrl + '/unit/update',
    },

    // 菜单
    sysMenu: {
        getUserNav: BaseUrl + '/sysMenu/getUserNav',
    },

    // 订单
    order: {
        selectList: BaseUrl + "/order/selectList",
        addOrder: BaseUrl + '/order/addOrder',
        orderDetail: BaseUrl + '/order/orderDetail',
    },

    // 系统用户
    sysUser: {
        userList: BaseUrl + '/sysUser/userList',
        sysUserQuery: BaseUrl + '/sysUser/sysUserQuery',
        update: BaseUrl + '/sysUser/update',
        delete: BaseUrl + '/sysUser/delete',
        add: BaseUrl + '/sysUser/add',
    },

    // 角色
    sysRole: {
        roleList: BaseUrl + '/sysRole/roleList',
        roleTypes: BaseUrl + '/sysRole/types',
        delete: BaseUrl + '/sysRole/delete',
        upsert: BaseUrl + '/sysRole/upsert'
    }
}
